﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

//Write a program that reads two positive integer numbers and prints how many numbers p exist between them such that the reminder of the division by 5 is 0 (inclusive). 
//Example: p(17,25) = 2.

namespace _04DivideByFive
{
    class _04DivideByFive
    {
        static void Main(string[] args)
        {
            Console.Write("Enter number:");
            int a = int.Parse(Console.ReadLine());
            Console.Write("Enter number:");
            int b = int.Parse(Console.ReadLine());
            int counter = 0;

            for (int i = a; i <= b; i++)
            {
                if (i % 5 == 0)
                {
                    counter++;
                }
            }
            Console.WriteLine("There are {0}", counter);
            
        }
    }
}
